module two {
	export class AutoCloseBox extends BaseComponent {
		public constructor(skinName:string) {
			super(skinName);
		}

		protected created(): void {
			super.created();
			let rect = new eui.Rect();
			rect.alpha = 0;
			rect.percentWidth = 100;
			rect.percentHeight = 100;
			this.addChildAt(rect, 0);

			rect.addEventListener(egret.TouchEvent.TOUCH_TAP, (e: egret.TouchEvent) => {
				closeBox(this);
			}, this);
		}
	}
}